<?php

namespace App\Library\Requests\Upload;

use App\Library\Requests\Base\BaseDTORequest;

class UploadRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'file' => 'required|file',
        ];
    }

    public function messages(): array
    {
        return [
            'file.required' => '请选择要上传的文件',
        ];
    }
}
